<template>
	<view class="p20 h100vh">
		<scroll-view scroll-y="true" class="scroll-view oy-auto  pr h100 " @scrolltolower="getMore">
			<view class="p20 bag--fff mt20 br--20" v-for="(item,index) in list" :key="index"
				@click="goto(`/pages/index/PublicDetails?kai=${0}&id=${item.id}`)">
				<view class="fw f14">
					{{item.title}}
				</view>
				<view class="right mt20 f12 co--999">
					{{item.sent_date}}
				</view>
			</view>
			<view class="center fs12 co--999 mt10">
				上滑加载更多
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				list: [],
				id: null
			}
		},
		onLoad(e) {
			if (e.id) {
				this.id = e.id
				this.getlist()
			}
		},
		methods: {
			getMore() {
				// this.pageNo++
				console.log('1')
			},
			async getlist() {
				let {
					data
				} = await this.$rqt.skillClassLists({
					skill_institution_id: this.id
				})
				this.list = data.lists
			},
		}
	}
</script>

<style>

</style>